package com.scoring.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.scoring.system.mapper.ExpandQualityMapper;
import com.scoring.system.pojo.ExpandQuality;
import com.scoring.system.service.ExpandQualityService;
@Service("expandQualityService")
public class ExpandQualityServiceImpl implements ExpandQualityService {
	
	@Resource
	private ExpandQualityMapper eqDao;

	@Override
	public int deleteById(int id) {
		return eqDao.deleteByPrimaryKey(id);
	}

	@Override
	public int saveExpandQuality(ExpandQuality record) {
		return eqDao.insertSelective(record);
	}

	@Override
	public ExpandQuality getExpandQualityById(int id) {
		return eqDao.selectByPrimaryKey(id);
	}

	@Override
	public List<ExpandQuality> listExpandQualityByClass(int classId) {
		return eqDao.listExpandQualityByClass(classId);
	}

	@Override
	public int updateExpandQuality(ExpandQuality record) {
		return eqDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public ExpandQuality getExpandQualityByStduent(int studentId) {
		return eqDao.selectByStudent(studentId);
	}

}
